package io.github.talelin.latticy.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.github.talelin.latticy.model.BannerDO;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BannerMapper extends BaseMapper<BannerDO> {

    public List<BannerDO> getBanners();

    @Select("Select * FROM banner")
    public List<BannerDO> getBannerAll();

    long insertBanner(BannerDO banner);
}
